<?php

namespace app\mobile\controller;

use app\mobile\model\CaseModel;
use app\mobile\model\NewsModel;

class Index extends Base {

    public function index() {

        //获取所有案例
        $caseModel = new CaseModel();
        $caseList = $caseModel->getListAll();
        $this->assign('caseList', $caseList);

        //获取所有新闻
        $newsModel = new NewsModel();
        $newsList = $newsModel->getList(0, 5);
        $this->assign('newsList', $newsList);

        
        return $this->fetch();
    }

    //单页

    public function weiyingxiao() {
        return $this->fetch();
    }

    public function about() {
        return $this->fetch();
    }

}
